<?php
error_reporting(0);
class Business{
    function Business2(){
        $map = array(
        OP_SETTLE_TYPE=>$_REQUEST['OP_SETTLE_TYPE'],
		SUBACCOUNT_TYPE=>$_REQUEST['SUBACCOUNT_TYPE'],
		SUBACCOUNT_IS_OPENED=>$_REQUEST['SUBACCOUNT_IS_OPENED'],
		FEE_TYPE=>$_REQUEST['FEE_TYPE'],
		ACCESS_TYPE=>$_REQUEST['ACCESS_TYPE'],
		TAG_WECHAT_USER_SCAN=>$_REQUEST['TAG_WECHAT_USER_SCAN'],
		TAG_WECHAT_MERCHANT_SCAN=>$_REQUEST['TAG_WECHAT_MERCHANT_SCAN'],
		TAG_ALIPAY_USER_SCAN=>$_REQUEST['TAG_ALIPAY_USER_SCAN'],
		TAG_ALIPAY_MERCHANT_SCAN=>$_REQUEST['TAG_ALIPAY_MERCHANT_SCAN'],
		WECHAT_H5_PRIORITY=>$_REQUEST['WECHAT_H5_PRIORITY'],
        COMPANY_IS_GROUP_DIVISION=>['COMPANY_IS_GROUP_DIVISION'],
		ZRR_ONE_KEY_IS_OPEN=>['ZRR_ONE_KEY_IS_OPEN'],
		ZRR_ZF_BK_IS_OPEN=>['ZRR_ZF_BK_IS_OPEN'],
		PARENT_MERCHANT_FEE_BEAR=>['PARENT_MERCHANT_FEE_BEAR']);


        $json = Business::businessfunstr($map);
        echo $json;

    }

    function businessfunstr($map){
        $json='{';
        if (''!=$_REQUEST['SUBACCOUNT_IS_OPENED'] && $_REQUEST['SUBACCOUNT_IS_OPENED'] != null) {
            $json.='"SUBACCOUNT_IS_OPENED":["'.$_REQUEST['SUBACCOUNT_IS_OPENED'].'"],';
        }
        if (''!=$_REQUEST['OP_SETTLE_TYPE'] && $_REQUEST['OP_SETTLE_TYPE'] != null) {
            $json.='"OP_SETTLE_TYPE":["'.$_REQUEST['OP_SETTLE_TYPE'].'"],';
        }
        if (''!=$_REQUEST['SUBACCOUNT_TYPE'] && $_REQUEST['SUBACCOUNT_TYPE'] != null) {
            $json.='"SUBACCOUNT_TYPE":["'.$_REQUEST['SUBACCOUNT_TYPE'].'"],';
        }
        if (''!=$_REQUEST['FEE_TYPE'] && $_REQUEST['FEE_TYPE'] != null) {
            $json.='"FEE_TYPE":["'.$_REQUEST['FEE_TYPE'].'"],';
        }
        if (''!=$_REQUEST['ACCESS_TYPE'] && $_REQUEST['ACCESS_TYPE'] != null) {
            $json.='"ACCESS_TYPE":["'.$_REQUEST['ACCESS_TYPE'].'"],';
        }
        if (''!=$_REQUEST['TAG_WECHAT_USER_SCAN'] && $_REQUEST['TAG_WECHAT_USER_SCAN'] != null) {
            $json.='"TAG_WECHAT_USER_SCAN":["'.$_REQUEST['TAG_WECHAT_USER_SCAN'].'"],';
        }
        if (''!=$_REQUEST['TAG_WECHAT_MERCHANT_SCAN'] && $_REQUEST['TAG_WECHAT_MERCHANT_SCAN'] != null) {
            $json.='"TAG_WECHAT_MERCHANT_SCAN":["'.$_REQUEST['TAG_WECHAT_MERCHANT_SCAN'].'"],';
        }
        if (''!=$_REQUEST['WECHAT_H5_PRIORITY'] && $_REQUEST['WECHAT_H5_PRIORITY'] != null) {
            $json.='"WECHAT_H5_PRIORITY":["'.$_REQUEST['WECHAT_H5_PRIORITY'].'"],';
        }
        if (''!=$_REQUEST['TAG_ALIPAY_MERCHANT_SCAN'] && $_REQUEST['TAG_ALIPAY_MERCHANT_SCAN'] != null) {
            $json.='"TAG_ALIPAY_MERCHANT_SCAN":["'.$_REQUEST['TAG_ALIPAY_MERCHANT_SCAN'].'"],';
        }
        if (''!=$_REQUEST['TAG_ALIPAY_USER_SCAN'] && $_REQUEST['TAG_ALIPAY_USER_SCAN'] != null) {
            $json.='"TAG_ALIPAY_USER_SCAN":["'.$_REQUEST['TAG_ALIPAY_USER_SCAN'].'"],';
        }
        if (''!=$_REQUEST['COMPANY_IS_GROUP_DIVISION'] && $_REQUEST['COMPANY_IS_GROUP_DIVISION'] != null) {
            $json.='"COMPANY_IS_GROUP_DIVISION":["'.$_REQUEST['COMPANY_IS_GROUP_DIVISION'].'"],';
        }
        if (''!=$_REQUEST['ZRR_ONE_KEY_IS_OPEN'] && $_REQUEST['ZRR_ONE_KEY_IS_OPEN'] != null) {
            $json.='"ZRR_ONE_KEY_IS_OPEN":["'.$_REQUEST['ZRR_ONE_KEY_IS_OPEN'].'"],';
        }
        if (''!=$_REQUEST['ZRR_ZF_BK_IS_OPEN'] && $_REQUEST['ZRR_ZF_BK_IS_OPEN'] != null) {
            $json.='"ZRR_ZF_BK_IS_OPEN":["'.$_REQUEST['ZRR_ZF_BK_IS_OPEN'].'"],';
        }
        if (''!=$_REQUEST['PARENT_MERCHANT_FEE_BEAR'] && $_REQUEST['PARENT_MERCHANT_FEE_BEAR'] != null) {
            $json.='"PARENT_MERCHANT_FEE_BEAR":["'.$_REQUEST['PARENT_MERCHANT_FEE_BEAR'].'"],';
        }


        $json=substr($json, 0,strlen($json)-1).'}';
        echo $json;
    }
}
Business::Business2();